package cc.vant.wechat.model.packet;

import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;

/**
 * @author Vant
 * @version 2018/12/2 上午 10:57
 */
public class FailPacket implements Packet {
    public static final int TYPE = FAIL;

    @Override
    public ByteBuf serialize() {
        ByteBuf buffer = Unpooled.buffer(4);
        buffer.writeInt(TYPE);
        return buffer;
    }

    @Override
    public void unserialize(ByteBuf data) {
    }

    @Override
    public int getType() {
        return TYPE;
    }
}
